package com.seagull.sb.security;

import com.seagull.sb.domain.Student;

public abstract class BaseUser implements java.security.Principal {
    // Role
    public enum Role {
        student, teacher
    };
    private Role role;
	
    
    abstract int getOrgId();
	abstract int getClassId();
	abstract int getStudentId();
	abstract int getTeacherId();
	
	abstract boolean isTeacher();
    @Override
    public String getName() {
        return null;
    }

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}
	
}